package com.mew.chess.core.game.dyj.game.message;

import com.zebra.common.ByteBufUtils;
import io.netty.buffer.ByteBuf;
import lombok.*;

/**
 * @author dylin
 * @create 2021/4/25
 */
@Data
@ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BetRecordMessage {
    private long uid;//压注人
    private int betType;//压注类型
    private long betNumber;//压注数量
    private long payment;//赔付
    public void write(ByteBuf b){
        ByteBufUtils.writeLong(b,uid);
        ByteBufUtils.writeInt(b,betType);
        ByteBufUtils.writeLong(b,betNumber);
    }
}
